package com.roger.myHome.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class DoSomethingTask {

    //@Scheduled(cron="0 0/60 9-17 * * ?")
    //@Scheduled(cron ="*/10 * * * * ?")
    public void doSomething() {
        System.out.println("==========do something " + (new Date()));
    }
}
